def f(x):
    return x * x


L = map(f, [1, 2, 3, 4, 5, 6, 7, 8, 9])
print(list(L))

N = map(lambda n: n * n, [1, 2, 3, 4, 5, 6, 7, 8, 9])
print(list(N))
l1 = [10, 20, 30]
l2 = [1, 2, 3, 4]
M = map(lambda a, b: a + b, l1, l2)
print(list(M))
